package com.example.shaomengjie.smvp;

import android.app.Application;

import com.example.shaomengjie.smvp.framework.AppStateTracker;
import com.example.shaomengjie.smvp.net.http.HttpManager;


/**
 * Created by shiwei on 2017/3/21.
 */

public class MyApplication extends Application {
    private static MyApplication mInstance;
    @Override
    public void onCreate() {
        super.onCreate();
        mInstance = this;
        AppStateTracker.init(this);
        HttpManager.init(this);//不做任何操作仅仅是缓存一下Application引用
    }
    public static MyApplication getmInstance(){
        return mInstance;
    }
}
